package com.vodone.v1pin.test
{
	
	import com.vodone.libs.core.service.HttpJsonDelegate;
	import com.vodone.v1pin.ServiceProvider;
	
	import mx.rpc.http.mxml.HTTPService;
	
	[Bindable]
	public class TestDelegate
	{
		  
		public static function test( resultHandler:Function , faultHandler:Function = null , context:Array = null ):void
		{
			var service:HTTPService = ServiceProvider.getInstance().test;
			var params:Object = {
				params1 : "hello",
				params2 : "hello"
			}
			
			var delegate:HttpJsonDelegate = new HttpJsonDelegate( service );
			delegate.send( params , resultHandler , faultHandler , context );
		}
	}
}